//
//  YZLDiscussTitleView.m
//  Car
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 岳明. All rights reserved.
//

#import "YZLDiscussTitleView.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height

@implementation YZLDiscussTitleView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        //颜色
        self.backgroundColor = [UIColor whiteColor];
        
        self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(25*frame.size.width/375, 20*HEIGHT/667, 50*frame.size.width/375, 30*HEIGHT/667)];
        self.label1.text = @"精选";
        [self addSubview:self.label1];
        self.label1.textAlignment = 1;
        self.label1.textColor = [UIColor cyanColor];
        self.label1.userInteractionEnabled = YES;
        
        self.label2 = [[UILabel alloc]initWithFrame:CGRectMake(frame.size.width/4 + 25*frame.size.width/375, 20*HEIGHT/667, 70*frame.size.width/375, 30*HEIGHT/667)];
        self.label2.text = @"热帖";
        [self addSubview:self.label2];
        self.label2.userInteractionEnabled = YES;
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
